﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Vkontakte.Api.Operations
{
	[ApiMethod("messages.getLongPollServer")]
	public sealed class MessagesGetLongPollServer
		:Base30ApiOperation
	{
		private LongPollServerData _result;

		protected override void Compile()
		{
			AddParameter( "method", "messages.getLongPollServer" );
			base.Compile();
		}

		protected override void ParseData(string data)
		{
			_result = Serializer.LoadObjectXmlString<LongPollServerData>(data);
			
			base.ParseData(data);
		}

		public LongPollServerData GetResult()
		{
			return _result;
		}
	}
}
